﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MP/backend.Master" AutoEventWireup="true" CodeBehind="QuanLyHocVan.aspx.cs" Inherits="TimViec.backend.QuanLyHocVan" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h4 class="alert_info">
        Quản lý học vấn</h4>
    <div class="module width_full">
        <asp:Literal runat="server" ID="lbCapBacId" Visible="False"></asp:Literal>
        <div class="p_10">
            <table cellspacing="0" cellpadding="0" width="100%">
                <tr>
                    <td valign="top" style="width: 49%">
                        <table cellspacing="10" cellpadding="0" >
                            <tr>
                                <td>
                                    <strong>Tên học vấn:</strong>
                                </td>
                                <td>
                                    <asp:TextBox runat="server" ID="txtHocVan" Width="250px"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td></td>
                                <td>
                                    <asp:Button runat="server" ID="btSave" CssClass="buttonNew" Text="Lưu lại" 
                                        onclick="btSave_Click"/>
                                    <asp:Button runat="server" ID="btUpdate" CssClass="buttonNew" Text="Cập nhật" 
                                        Visible="False" onclick="btUpdate_Click"/>
                                    <asp:Button runat="server" ID="btCancel" CssClass="buttonCancel" Text="Hủy bỏ" 
                                        onclick="btCancel_Click"/>
                                </td>
                            </tr>
                        </table>
                    </td>
                    <td valign="top">
                        <table cellspacing="0" cellpadding="0" class="tablesorter">
                            <thead>
                                <tr>
                                    <th>STT</th>
                                    <th>Tên học vấn</th>
                                    <th>Chức năng</th>
                                </tr>
                            </thead>
                            <asp:Repeater runat="server" ID="rptHocVan" 
                                onitemcommand="rptHocVan_ItemCommand">
                                <ItemTemplate>
                                    <tr>
                                        <td><%#Container.ItemIndex +1 %></td>
                                        <td><%#Eval("MoTa") %></td>
                                        <td>
                                            <asp:LinkButton runat="server" ID="lbtEdit" CommandName="Edit" CommandArgument='<%#Eval("HocVanId") %>' ToolTip="Cập nhật"><img src="../images/backend/icn_edit.png"/></asp:LinkButton>
                                        </td>
                                    </tr>
                                </ItemTemplate>
                            </asp:Repeater>
                        </table>
                    </td>
                </tr>
            </table>
        </div>
    </div>
</asp:Content>
